﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EFCore.Migrations.SS
{
    /// <inheritdoc />
    public partial class SS : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SS",
                columns: table => new
                {
                    SsdId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    StandardId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    StandardName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Designer = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Register = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Checker = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Changer = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RegistTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CheckTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ChangeTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    SalarySum = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    CheckStatus = table.Column<bool>(type: "bit", nullable: false),
                    ChangeStatus = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CheckComment = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SS", x => x.SsdId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SS");
        }
    }
}
